package com.study.ssm.aop;

import com.study.ssm.aop.proxy.UserService;
import com.study.ssm.factory.bean.User;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author zhoujunlin
 * @date 2023年07月24日 10:50
 * @desc
 */
public class TestApplicationContext03 {

    ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("/aop/applicationContext03.xml");

    @Test
    public void test01() {
        UserService userService = ctx.getBean("userService", UserService.class);

        userService.register(new User());
        userService.query("zhoujunlin", "root");
    }

}
